<template>
  <view class="flex flex-col items-center justify-center">
    <view class="mb-20rpx ml-20rpx w-full flex justify-start">
      <view class="flex items-center space-x-10rpx">
        <view class="h-36rpx w-5rpx bg-blue-600" />
        <text class="font-size-30rpx color-black" />
        <text class="font-size-30rpx color-black">
          仓库发货
        </text>
      </view>
    </view>
    <view class="mt-20rpx flex flex-row justify-center space-x-60rpx" style="margin-right: 170rpx;">
      <view class="flex flex-col items-center" @click="navigateToInStock">
        <image
          class="mb-5rpx h-90rpx w-90rpx"
          src="@/static/images/inStock.png"
        />
        <text class="mt-5rpx font-size-23rpx color-gray-700">
          产品入库
        </text>
      </view>
      <view class="flex flex-col items-center">
        <image
          class="mb-5rpx h-90rpx w-90rpx"
          src="@/static/images/transfer.png"
        />
        <text class="mt-5rpx font-size-23rpx color-gray-700">
          调拨发料
        </text>
      </view>
      <view class="flex flex-col items-center">
        <image
          class="mb-5rpx h-90rpx w-90rpx"
          src="@/static/images/transfer_ship.png"
        />
        <text class="mt-5rpx font-size-23rpx color-gray-700">
          发货调拨
        </text>
      </view>
      <view class="flex flex-col items-center">
        <image
          class="mb-5rpx h-90rpx w-90rpx"
          src="@/static/images/outStock.png"
        />
        <text class="mt-5rpx font-size-23rpx color-gray-700">
          销售出库
        </text>
      </view>
    </view>

    <!-- 原来的标题部分 -->
    <view class="flex justify-center">
      <text class="font-size-36rpx color-gray-700">
        {{ title }}
      </text>
    </view>
    <!-- #ifdef MP-WEIXIN -->
    <agree-privacy v-model="showAgreePrivacy" :disable-check-privacy="false" @agree="handleAgree" />
    <!-- #endif -->
  </view>
</template>

<script setup lang="ts">
import { ref } from 'vue';
import { useUserStore } from '@/store';

// const title = ref<string>();
// title.value = import.meta.env.VITE_APP_TITLE;

const store = useUserStore();
console.log('store.user_name', store.user_name);

const showAgreePrivacy = ref(false);
// 同意隐私协议
function handleAgree() {
  console.log('同意隐私政策');
}
function navigateToInStock() {
  uni.navigateTo({
    url: '/pages/tab/inStock/index.vue', // 替换成实际的路径
  });
}
</script>
